package com.aaa.dem1109.代理模式.静态代理;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/9  15:15
 */
public class FCZJ implements Chuzu{
    //被代理的对象
    private FangDong target;
    //构造方法
    public FCZJ(FangDong target) {
        this.target = target;
    }

    public void chuzu() {
        intro();
        watch();
        target.chuzu();
    }

    public void watch(){
        System.out.println("看房");
    }
    public void intro(){
        System.out.println("房源介绍");
    }
}
